<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
echo $form;
echo $js;
?>
<script type="text/javascript">
	jQuery.noConflict();

	jQuery(document).ready(function($){
		$('#send_pg').click(function(e) {
			var data = $("#over_1 form").serialize();
			showwork();
			$.ajax({
			   type: "POST",
			   url: "/admin/pg/ajax/<?=$id?>/",
			   data: data,
			   dataType: 'json',
			   async: false,
			   success: function(response){
				$("#news_pg-0").prepend("<option selected='selected' value='"+response.id+"'>"+response.title+"</option>");
				$("#over_1").html("");
				$("#over_1").overlay().close();
			    hidework();
			   }
			 });
			 return false;
		});
	});
</script>
<div class='close'></div>